import request from "@/utils/request";

export function getList(method, data) {
  if (method == "post") {
    return request({
      url: "/eldertry",
      method: method,
      data,
    });
  } else {
    return request({
      url: "/eldertry",
      method: method,
      params: data,
    });
  }
}
export function getFamily(method, data) {
  if (method == "post") {
    return request({
      url: "/elderfamilytry",
      method: method,
      data,
    });
  } else {
    return request({
      url: "/elderfamilytry",
      method: method,
      params: data,
    });
  }
}
export function getHealth(method, data) {
  if (method == "post") {
    return request({
      url: "/elderhealthtry",
      method: method,
      data,
    });
  } else {
    return request({
      url: "/elderhealthtry",
      method: method,
      params: data,
    });
  }
}
export function getBedset(method, data) {
  if (method == "post") {
    return request({
      url: "/elderbedset",
      method: method,
      data,
    });
  } else {
    return request({
      url: "/elderbedset",
      method: method,
      params: data,
    });
  }
}
export function getFees(method, data) {
  if (method == "post") {
    return request({
      url: "/elderfeestry",
      method: method,
      data,
    });
  } else {
    return request({
      url: "/elderfeestry",
      method: method,
      params: data,
    });
  }
}
